const state = {
    isCollapse:false,
    tagsList:[
        {
            path: '/',
            name: 'home',
            label: '首页',
            icon: 's-home',
            url: 'Home/Home'
        },
    ]
};
const mutations = {
    CHANGE_COLLAPSE(state){
        state.isCollapse=!state.isCollapse
    },
    CHANGE_TAGS(state,val){
        console.log(val,'val');
        if(val.name!='home'){
            if(state.tagsList.indexOf(val)===-1){
                state.tagsList.push(val)
            }
        }
    }
};
const actions = {};
const getters = {};

export default {
state,
mutations,
actions,
getters
}